import request from '@/utils/request'

// 查询系统通知列表分页
export function listSysNotice(query) {
  return request({
    url: '/work/sysNotice/list',
    method: 'get',
    params: query
  })
}

// 获取未读消息系统通知
export function getNotReaded() {
  return request({
    url: '/work/sysNotice/notReaded',
    method: 'get',
  })
}

// 查询系统通知详细
export function getSysNotice(id) {
  return request({
    url: '/work/sysNotice/' + id,
    method: 'get'
  })
}

// 删除系统通知
export function delSysNotice(id) {
  return request({
    url: '/work/sysNotice/' + id,
    method: 'delete'
  })
}

// 已读系统通知
export function readedSysNotice(id) {
  return request({
    url: '/work/sysNotice/readed/' + id,
    method: 'post'
  })
}
